package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName oss_image
 */
@TableName(value = "oss_image")
@Data
public class OssImage implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 图片ID
     */
    @TableId(value = "image_id", type = IdType.AUTO)
    private Long imageId;
    /**
     * OSS图片URL
     */
    @TableField(value = "url")
    private String url;
    /**
     * 图片描述
     */
    @TableField(value = "description")
    private String description;
    /**
     * 上传时间
     */
    @TableField(value = "upload_time")
    private Date uploadTime;
    /**
     * 上传者ID（可选，如果需要记录上传者的话）
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 关系
     */
    @TableField(value = "relation_type")
    private String relationType;

    /**
     * 课程ID
     */
    @TableField(value = "course_id")
    private Long courseId;
}